package org.xin.framework.service;


import org.xin.framework.base.service.IBaseService;
import org.xin.framework.pojo.entity.SysDictionary;
import org.xin.framework.pojo.entity.SysDictionaryItem;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
* <p>
    * 系统模块-字典条目表 服务接口
    * </p>
*
* @author: xin
* @date: Create in 2021-10-09
*/

public interface ISysDictionaryItemService extends IBaseService<SysDictionaryItem> {
    /**
     * @desc <p> 根据字典ID获取字典条目 </p>
     * @author xin
     * @date 2021/10/9
     */
    List<SysDictionaryItem> selectByDictionaryId(@NotBlank String sysDictionaryId);

    /**
     * @desc <p> 根据字典ID和字典条目code获取字典条目 </p>
     * @author xin
     * @date 2021/10/9
     */
    SysDictionaryItem selectNameByDictionaryIdAndCode(@NotBlank String sysDictionaryId, @NotBlank String code);
}

